﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace L10
{
    public partial class Huaxian : Form
    {
        Pen p1 = new Pen(Color.Red, 2);
        private void Button_1click(object sender, System.EventArgs e)
        {
            p1.Color = Color.Red;
            Graphics g = this.CreateGraphics();
            g.Clear(this.BackColor);
            g.DrawLine(p1, 100, 10, 250, 10);
            Bitmap b1 = (Bitmap)Image.FromFile("1.bmp", true);
            Brush sp = new TextureBrush(b1);
            g.FillEllipse(sp, 150, 57, 160, 100);
        }

        private void InitializeComponent()
        {
            this.SuspendLayout();
            // 
            // huaxian
            // 
            this.ClientSize = new System.Drawing.Size(278, 244);
            this.Name = "huaxian";
            this.Load += new System.EventHandler(this.huaxian_Load);
            this.ResumeLayout(false);

        }
        private void huaxian_Load(object sender, EventArgs e)
        {

        }
    }

}



